package com.ruoyi.common.core.domain.base.datam;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 水闸基本信息登记对象 wc_sluice_b
 * 
 * @author hwd
 * @date 2023-02-16
 */
@Data
@TableName("wc_sluice_b")
public class WcSluiceB extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 水闸编码 */
    private String sluCd;

    /** 水闸名称 */
    @Excel(name = "水闸名称")
    private String sluNm;

    /** 水闸类型 */
    @Excel(name = "水闸类型", readConverterExp = "1=进水闸,2=节制闸,3=排（退）水闸,4=斗口闸,5=其他")
    private String sluType;

    /** 闸门数量 */
    @Excel(name = "闸门数量")
    private Long gateNum;

    /** 水闸净宽 */
    @Excel(name = "水闸净宽")
    private Long gateWid;

    /** 建成日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "建成日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date sluDate;

    /** 备注 */
    @Excel(name = "备注")
    private String sluMark;

    public void setSluCd(String sluCd) 
    {
        this.sluCd = sluCd;
    }

    public String getSluCd() 
    {
        return sluCd;
    }
    public void setSluNm(String sluNm) 
    {
        this.sluNm = sluNm;
    }

    public String getSluNm() 
    {
        return sluNm;
    }
    public void setSluType(String sluType) 
    {
        this.sluType = sluType;
    }

    public String getSluType() 
    {
        return sluType;
    }
    public void setGateNum(Long gateNum) 
    {
        this.gateNum = gateNum;
    }

    public Long getGateNum() 
    {
        return gateNum;
    }
    public void setGateWid(Long gateWid) 
    {
        this.gateWid = gateWid;
    }

    public Long getGateWid() 
    {
        return gateWid;
    }
    public void setSluDate(Date sluDate) 
    {
        this.sluDate = sluDate;
    }

    public Date getSluDate() 
    {
        return sluDate;
    }
    public void setSluMark(String sluMark) 
    {
        this.sluMark = sluMark;
    }

    public String getSluMark() 
    {
        return sluMark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("sluCd", getSluCd())
            .append("sluNm", getSluNm())
            .append("sluType", getSluType())
            .append("gateNum", getGateNum())
            .append("gateWid", getGateWid())
            .append("sluDate", getSluDate())
            .append("sluMark", getSluMark())
            .toString();
    }
}
